const {
	Controller
} = require('uni-cloud-router')
const uniID = require('uni-id')
module.exports = class TradeController extends Controller {
	async getIncomeDetail() {
		let {
			startDate, 
			endDate, 
			pageNum,
			pageSize,
			tradeType
		} = this.ctx.data
		return this.service.trade.getIncomeDetail({
			startDate, endDate, pageNum, pageSize, tradeType, userId: this.ctx.auth.uid
		})
	}
}
